package org.swan.web.user.bean;

import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
public class UserRoleBean{

    public static final UserRoleBean SAMPLE = new UserRoleBean()
        .setUserRoleId(-1L)
            .setUserId(-1L)
            .setRoleId(-1L)
            .setConsignorId(-1L)
            .setCreateTime(LocalDateTime.now())
    ;

    /**
     * user_role_id
     */
    private long userRoleId;
    /**
     * user id
     */
    private long userId;
    /**
     * role id
     */
    private long roleId;
    /**
     * consignor, default is -1
     */
    private long consignorId;
    /**
     * consign time
     */
    private LocalDateTime createTime;
}
